package org.dromara.canteen.domain.bo;

import org.dromara.canteen.domain.CanteenCertificates;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 证书管理业务对象 canteen_certificates
 *
 * @author Gjb
 * @date 2025-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CanteenCertificates.class, reverseConvertGenerate = false)
public class CanteenCertificatesBo extends BaseEntity {

    /**
     * 人员id
     */
    private Long certificatesId;

    /**
     * 证书名称
     */
    @NotBlank(message = "证书名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 证书图片
     */
    @NotBlank(message = "证书图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String certificates;

    /**
     * 校区
     */
    @NotNull(message = "校区id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long schoolCampusId;

    /**
     * 备注
     */
    private String remark;

    private String tenantId;
}
